{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load static %}

{% block title %}图像特征值比对 Demo{% endblock title %}


{% block content %}

<div class="text-center">

<div class="row">
    <div class="col-md-12"><h3 class="text-center">比对 demo</h3></div>
</div>
{% if first_image and second_image %}
<div class="panel panel-info results">
    <div class="row">
        <div class="col-sm-6">
            <img src="{% get_media_prefix %}{{ first_image.image }}">
        </div>  

        <div class="col-sm-6">
            <img src="{% get_media_prefix %}{{ second_image.image }}">
        </div>  
    </div>
    <div class="row">
        <div class="col-sm-6">
            <small>{{ first_image.score }}</small>
        </div>  

        <div class="col-sm-6">
            <small>{{ second_image.score }}</small>
        </div>  
    </div>
    <div class="row">
        <div class="col-sm-12">
            <h3>Difference Score: {{diff_score}}<br><small>out of 256</small></h3>
        </div>  
        <div class="col-sm-12">
            <h3>Is duplicates: {{ is_duplicates }}</h3>
            <h3>Is duplicates: {{ hello }}</h3>
        </div>
    </div>
</div>
{% endif %}
<br/>
<br/>

{% crispy form %}

</div>

{% endblock content %}
